package com.situ.day10;

public class MyThread1 extends Thread{
	public String name;
	public MyThread1(String name) {
		this.name = name;
	}
	@Override
	public void run() {
		for (int i = 0; i <= 100; i++) {
			if (i % 2 ==0) {
				try {
					Thread.sleep(10);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				System.out.println(name+"==>"+i+"是偶数");
			}
		}
	}
}
